package v1

import (
	"devops-super/api"
	"devops-super/internal/model/mymodel"
	"github.com/gogf/gf/v2/frame/g"
)

type DeptServerPageLstReq struct {
	g.Meta `method:"get" path:"/dept-server/page-list" summary:"分页获取部门与服务器关联列表" tags:"部门服务器关联"`
	*api.PageLstReq
	DeptId    int    `json:"deptId"`
	Type      string `json:"type"`
	ServerKey string `json:"serverKey"`
}

type DeptServerPageLstRes struct {
	*api.PageLstRes[*mymodel.DeptServerResponse]
}

type DeptServerAddReq struct {
	g.Meta    `method:"post" path:"/dept-server" summary:"新增部门与服务器关联" tags:"部门服务器关联"`
	DeptId    string `v:"required#部门ID不能为空" json:"deptId"`
	ServerKey string `v:"required#服务器标识不能为空" json:"serverKey"`
	Type      string `json:"type"`
	Remark    string `json:"remark"`
}

type DeptServerAddRes struct{}

type DeptServerDelReq struct {
	g.Meta `method:"delete" path:"/dept-server" summary:"删除部门与服务器关联" tags:"部门服务器关联"`
	Id     string `v:"required#ID不能为空" json:"id"`
}

type DeptServerDelRes struct{}
